package com.ruoyi.system.domain.vo;

/**
 * 补丁生成结果类，包含成功状态和文件大小信息
 */
public class PatchResult {
    private final boolean success;
    private final double sizeMB;
    private final long sizeBytes;

    public PatchResult(boolean success, double sizeMB, long sizeBytes) {
        this.success = success;
        this.sizeMB = sizeMB;
        this.sizeBytes = sizeBytes;
    }

    public boolean isSuccess() {
        return success;
    }

    public double getSizeMB() {
        return sizeMB;
    }

    public long getSizeBytes() {
        return sizeBytes;
    }

    @Override
    public String toString() {
        return String.format("PatchResult{success=%s, sizeMB=%.2f, sizeBytes=%d}",
                success, sizeMB, sizeBytes);
    }
}
